//    Copyright (C) Kherty.  All rights reserved.
namespace OpenLS.Core.Formatting
{
    class NumericToken : ClauseFormatToken
    {
        public NumericToken(string c)
        {
            Value = c;
        }
        internal override void Apply(FormatClause result)
        {
            result.AddStandardFormatItem(Code.Replace('?', '#')); //\\
        }

        internal string Value;
        internal char Last { get { return Value[Value.Length - 1]; } }


        internal override string Code
        {
            get { return Value; }
        }

        internal void IncreaseDecimal()
        {
            Value = Value + Last;
        }
    }
}